package jaux.tank.dao.system;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;

import jaux.tank.bean.entity.system.EntityExtension;

public interface EntityExtensionRepository
		extends JpaRepository<EntityExtension, String>, JpaSpecificationExecutor<EntityExtension> {

	@Modifying
	@Transactional
	void deleteByEntityAndEntityId(String entity, String entityId);

	List<EntityExtension> findByEntityAndEntityIdOrderByNo(String entity, String entityId);

}
